package com.chefu.order.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * 加载属性
 */
@Data
@Component
@ConfigurationProperties(prefix = "cf.worker")
public class IdWorkerProperties {
    private Long workerId;
    private Long dataCenterId;
}
